package com.ymatou.smsproxy.api.service;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;

/**
 * 发送短信接口Call FreeMaker Template自动生成代码
 */
public class SmsCallBackCall extends YmatouBaseCall {
	private static String opurl = "api/Message/CallBack";
	private static String md;
	public SmsCallBackCall(String mode, String beanFormat) {
		super(EnvSetup.getSystemUrl("new_api_smsproxy"), opurl, mode, beanFormat);
		md=mode;
	}
	public SmsCallBackCall() {
		super(EnvSetup.getSystemUrl("new_api_smsproxy"), opurl, "POST", "PARAM");
		md=mode;
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept", "text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/x-www-form-urlencoded");
	}

}